import 'package:get/get.dart';

class MoreController extends GetxController {
  final pc = false.obs;
  final projector = false.obs;
  final power = false.obs;
  final lamp = false.obs;
  final curtain = false.obs;
  final air = false.obs;

  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {
    super.onClose();
  }

  void onChange(bool value, String title) {
    switch (title) {
      case '教师机':
        pc.value = value;
        break;
      case '投影机':
        projector.value = value;
        break;
      case '功率电源':
        power.value = value;
        break;
      case '灯光':
        lamp.value = value;
        break;
      case '窗帘':
        curtain.value = value;
        break;
      case '空调':
        air.value = value;
        break;
    }
  }
}
